package org.jetnuke.common;

import java.util.Properties;

public class PropertiesResource {

	protected static final long MILLIS_PER_SECOND = 1000;

	/**
	 * How often the file modification time is checked (in seconds).
	 */
	protected long modificationCheckInterval = 0;

	/**
	 * The file modification time (in milliseconds) for the cached template.
	 */
	protected long lastModified = 0;

	/**
	 * The next time the file modification time will be checked (in
	 * milliseconds).
	 */
	protected long nextCheck = 0;

	/**
	 * Name of the resource
	 */
	protected String name;

	Properties props;

	private String path;

	/**
	 * @param pp
	 */
	public void setProperties(Properties pp) {
		props = pp;

	}

	/**
	 * @return
	 */
	public Properties getProperties() {
		return props;
	}

	/**
	 * @param path
	 */
	public void setPath(String path) {
		this.path = path;

	}

	/**
	 * @return
	 */
	public String getPath() {

		return path;
	}
}
